﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using log4net;

namespace Zeus.Mvc.Web.Controllers
{
    public class TestController : Controller
    {
        private static readonly ILog logger = LogManager.GetLogger(typeof(TestController));

        public ActionResult Index(string category, string technique)
        {
            string url = "";
            
            switch (category)
            {
                case "1":
                    //Web
                    switch (technique)
                    {
                        case "1":
                            //ASP.NET MVC4
                            url = "/Views/Web/MVC/index.cshtml";
                            break;
                        case "2":
                            //Ajax Web UI
                            url = "/Views/Web/AjaxWeb/index.cshtml";
                            break;
                    }

                    break;

                case "2":
                    //Data Transport

                    break;

                case "3":
                    //Extension

                    break;

                case "4":
                    //IOC

                    break;

                case "5":
                    //Cache

                    break;

            }

            return View(url);
        }

        public ActionResult TestContent()
        {
            return View();
        }

        public ActionResult LogTest()
        {
            logger.Info("测试页面打开");
            
            return View();
        }
    }
}
